package com.hjw.weixun.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 消息类
 * 
 * @author Wangchangxin
 * 
 */
public class Message implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7768832857873197651L;
	private Integer msgid;
	private String content;
	private Date publishtime;
	private Integer weixunid;
	
	//现在此属性主要用于存放回复人的id
	private Integer userid;
	
	//此属性主要用于存放回复人
	private User user;
	
	//现在此属性主要用于存放 要回复的msgid
	private Integer pid;
	
	//存储该信息下 回复的信息
	private List<Message> backMsgList;

	// 此属性用于方便显示发信息人的信息
	private Weixun weixun;

	public Integer getMsgid() {
		return msgid;
	}

	public void setMsgid(Integer msgid) {
		this.msgid = msgid;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getPublishtime() {
		return publishtime;
	}

	public void setPublishtime(Date publishtime) {
		this.publishtime = publishtime;
	}

	public Integer getWeixunid() {
		return weixunid;
	}

	public void setWeixunid(Integer weixunid) {
		this.weixunid = weixunid;
	}

	public Weixun getWeixun() {
		return weixun;
	}

	public void setWeixun(Weixun weixun) {
		this.weixun = weixun;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public List<Message> getBackMsgList() {
		if(null == backMsgList){
			backMsgList = new ArrayList<Message>();
		}
		return backMsgList;
	}

	public void setBackMsgList(List<Message> backMsgList) {
		this.backMsgList = backMsgList;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	
	
	

}
